const config = {
  root: 'http://stock.ytangdata.com/',
  rootApi: 'http://112.74.29.100:3028',
  //https://lxwp.zjcomex.com
  //http://specoil.jhuan.net
  publicApi: 'https://i-fudan.com',
  aesKey: 'api.JHuan.com)!^',
  aesIv: {
    sigBytes: 16,
    words: [
      1098016121, 1869966713, 1399746423, 1835101759
    ]
  },
  appid: 'wxd6c6a929eae6cb43',  // appid
  //wxd6c6a929eae6cb43
  // 轮旬时间间隔`1000`毫秒=`1s`
  pollingInterval: 1000,
  // 定时器设置
  timeTick: {
    kchart: 30 * 1000,          // K线刷新
    price: 1 * 1000,            // 当前报价
    balance: 15 * 1000, // 账户余额
    pollingInterval: 3000, // 持仓明细获取价格定时器设置
  },
  // 账户九宫格板块
  accountNav: [
    {
      icon: 'rt-ccmx',
      text: '持仓明细',
      link: '/account/positions',
    },
    {
      icon: 'rt-lsjy',
      text: '历史交易',
      link: '/account/transactions',
    },
    {
      icon: 'rt-szmx',
      text: '收支明细',
      link: '/account/inout',
    },
    {
      icon: 'rt-grxx',
      text: '个人信息',
      link: '/profile',
    },
    {
      icon: 'rt-zq',
      text: '红包',
      link: '/account/coupons',
    },
    {
      icon: 'rt-yhk',
      text: '银行卡',
      link: '/account/bankcards',
    },
    {
      icon: 'rt-zhqh',
      text: '账户切换',
      logout: true,
    },
    {
      icon: 'rt-tzgg',
      text: '通知公告',
      link: '/notice',
    },
    {
      icon: 'rt-help',
      text: '帮助',
      link: '/help',
    },
    {
      icon: 'info-circle-o',
      text: '关于',
      link: '/about',
    }
  ],
  // 商品类型
  types: [
    {
      TypeCode: "AU",
      TypeName: "澳红酒",
      Unit: "Btl",
      goods: []
    },
    {
      TypeCode: "AG",
      TypeName: "银饰品",
      Unit: "KG",
      goods: []
    },
    {
      TypeCode: "CO",
      TypeName: "尿素",
      Unit: "T",
      goods: [],
    },
  ],
  // 图表类型（对应Index）
  charts: ['分时线', '5分钟线', '30分钟线', '1小时线', '日线'],
  lists: {
    pageSize: 20,
  },
  // 提现提示
  withdrawTip: '提示：200元以下，手续费2元；200元以上，手续费为提现额的1%。',
  // 支付相关配置参数
  payment: {
    default: 'csscanpay',  // 默认支付方式
  },
  // 正则表达式
  pattern: {
    mobile: /^1[34578]\d{9}$/,
  },
}

export default config;